package com.ics.sapecit.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.HibernateTemplate;

import com.ics.sapecit.bean.User;
import com.ics.sapecit.dao.IUserDao;

public class UserDaoImpl extends HibernateTemplate implements IUserDao {

	public void add(User user) {
		this.persist(user);
	}

	public List<User> findUsers() {
		return (List<User>) this.getSession().createQuery("from User").list();
	}

}
